#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

#include "gamecontrol.h"

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    //重写键盘按压/释放事件
    void keyPressEvent(QKeyEvent *event);
    void keyReleaseEvent(QKeyEvent *event);
    static Widget* widget;

private:
    Ui::Widget *ui;

};
#endif // WIDGET_H
